package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectListByDeep(int deep);

    List<Destination> selectListByIds(Long[] refIds);

    List<Destination> queryForList(DestinationQuery qo);

    void updateHotById(@Param("id")Long id, @Param("hot")Boolean hot);

    void updateInfoById(@Param("id")Long id, @Param("info")String info);

    List<Destination> selectListByRegionId(Long regionId);

    List<Destination> selectByParentId(Long parentId);

    List<Destination> getDestByOneDeep(int deep);
}